package com.aishua.fire.entity.menu;

import com.aishua.fire.mapper.dto.TwoLevelMenuDto;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;
import java.util.List;

@Data
public class AllMenuInfo {


    private long id;

    @NotBlank(message="一级菜单名字不能为空")
    private String oneLevelMenuName;


    private Date createDate;


    private String menuType;


    private String routeUrl;

    @NotBlank(message="一级菜单序号不能为空")
    private String orderNum;


    private List<TwoLevelMenuDto> twoLevelMenuDtoList;

    public List<TwoLevelMenuDto> getTwoLevelMenuDtoList() {
        return twoLevelMenuDtoList;
    }

    public void setTwoLevelMenuDtoList(List<TwoLevelMenuDto> twoLevelMenuDtoList) {
        this.twoLevelMenuDtoList = twoLevelMenuDtoList;
    }


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
